package com.itheima.opp;

public class Java_01 {
    public static void main(String[] args) {
        //创建了一个学生表s1
        Students s1 = new Students();
        s1.name = "王凤欢";
        s1.math = 100.00;
        s1.chinese = 100.00;
        s1.printtotalscore();
        s1.printaveragescore();
        //再创建一个学生表s2
        Students s2 = new Students();
        s2.name = "邱智博";
        s2.math = 100.00;
        s2.chinese = 98.00;
        s2.printtotalscore();
        s2.printaveragescore();
        //在创建一个学生类s3
        Students s3 = new Students();
        s3.name = "李华";

        System.out.println(s3.name);
        System.out.println(s2.name);
        System.out.println(s1.name);
    }
}
